package org.intellij.plugins.junit4.action;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.intellij.plugins.junit4.JavaMethod;

// add action for New Test, put it in Generate menu too

// todo chane to ToggleTestAnnotationAction ?
public class ToggleTestAnnotationAction extends AnAction
{
//    private Logger log = Logger.getLogger("CONSOLE-WARN");

    public void actionPerformed(AnActionEvent event)
    {
        JavaMethod method = new ActionEvent(event).getSelectedMethod();
        if (method == null) return;
        method.toggleTestAnnotation();
    }
}

